home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 25 / AACD 25.iso / AACD / Magazine / Online / QMail / patches / qmail-bare-lf.diff < prev    next >
Encoding:
Text File  |  1997-09-10  |  1.1 KB  |  40 lines

  1. diff --unified --new-file ../qmail-1.01-unmodified/qmail-smtpd.c ./qmail-smtpd.c
  2. --- ../qmail-1.01-unmodified/qmail-smtpd.c    Tue Apr 15 07:05:23 1997
  3. +++ ./qmail-smtpd.c    Wed Sep 10 12:36:07 1997
  4. @@ -92,17 +92,6 @@
  5.   dohelo(remotehost);
  6.  }
  7.  
  8. -void straynewline()
  9. -{
  10. - out("451 \
  11. -Put ,E=\\r\\n at the end of Mether, Mtcp, or Msmtp in sendmail.cf \
  12. -if you are using Solaris 2.5 (fixed in 2.5.1). \
  13. -I cannot accept messages with stray newlines. \
  14. -Many SMTP servers will time out waiting for \\r\\n.\\r\\n.\
  15. -\r\n");
  16. - die();
  17. -}
  18. -
  19.  void blast(ssfrom,hops)
  20.  substdio *ssfrom;
  21.  int *hops;
  22. @@ -140,17 +129,14 @@
  23.     switch(state)
  24.      {
  25.       case 0:
  26. -       if (ch == '\n') straynewline();
  27.         if (ch == '\r') { state = 4; continue; }
  28.         break;
  29.       case 1: /* \r\n */
  30. -       if (ch == '\n') straynewline();
  31.         if (ch == '.') { state = 2; continue; }
  32.         if (ch == '\r') { state = 4; continue; }
  33.         state = 0;
  34.         break;
  35.       case 2: /* \r\n + . */
  36. -       if (ch == '\n') straynewline();
  37.         if (ch == '\r') { state = 3; continue; }
  38.         state = 0;
  39.         break;
  40.